<?php

namespace app\admin\model\fm;

use think\Model;

/**
 * Bankaccountusers
 */
class Bankaccountusers extends Model
{
    // 表主键
    protected $pk = 'ID';
    
    // 表名
    protected $name = 'fm_bankaccountusers';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;


    public function accountcodeTable(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\fm\Bankaccounts::class, 'accountcode', 'bankaccountcode');
    }

    public function useridTable(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\Admin::class, 'userid', 'username');
    }
}